-
Home
-
News-Parser
-
3.0.0
-
Code
-
Classes
- OpenAIServiceProvider
Total Complexity |
41 |
Dependencies |
8 |
Dependents |
0 |
Total lines |
239 |
Lines of code |
203 |
Logical lines of code |
108 |
Comment lines |
0 |
Methods |
18 |
Properties |
6 |
Methods 18
Method |
Rating |
Maintainability
|
Complexity
|
Lines of code
|
chat() |
A |
44 |
11 |
46 |
image() |
S |
52 |
6 |
23 |
__construct() |
S |
62 |
4 |
11 |
getOptions() |
S |
53 |
2 |
23 |
generateTextContent() |
S |
58 |
2 |
15 |
generateImageContent() |
S |
58 |
2 |
15 |
fetchOptions() |
S |
59 |
2 |
14 |
isAPIKeyDefined() |
S |
73 |
2 |
6 |
getTextRequestBody() |
S |
60 |
1 |
15 |
getImageRequestBody() |
S |
63 |
1 |
11 |
getWpConfigApiKey() |
S |
82 |
1 |
3 |
getName() |
S |
81 |
1 |
3 |
getTextRequestUrl() |
S |
80 |
1 |
3 |
isTextResposeFormateValid() |
S |
82 |
1 |
3 |
isImageResposeFormateValid() |
S |
82 |
1 |
3 |
retriveTextContent() |
S |
80 |
1 |
3 |
retriveImageContent() |
S |
80 |
1 |
3 |
getImageRequestUrl() |
S |
80 |
1 |
3 |